

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page language="java"%>

<!--Chuc nang-->
<ul class="top-nav">
	<li><a href="index.do" title="Home" class="linkHome">Home</a></li>
	<li><a
		href="search.do?tbKeyWord=&idcatogory=0&page=1&search=Search"
		title="Search" class="linkSearch">Search</a></li>
	<li><a href="cart.do" title="Cart" class="linkCart">Cart</a></li>
	<li><a href="#" title="Cart" class="linkAboutus">About Us</a></li>
	<li><a href="login.do" title="Log In" class="linkLogin">Log In</a></li>
	<li><a href="signup.do" title="Sign Up" class="linkSignup">Signup</a></li>
</ul>

<!-- xu ly script -->
<c:set var="khachhang" value="${sessionScope.username}" />
<c:if test="${sessionScope.username != null}">
	<script>
		$(function() 
		{
			// them tag logout vao cuoi list
			$('.top-nav')
					.append(
							'<li><a href="<c:url value="/j_spring_security_logout" />" >Log out</a></li>');
			// xoa linkLogin voi linkSignup
			$('.linkLogin').remove();
			$('.linkSignup').remove();
			// bat dau thay doi link thanh phan
			// lay ten dang nhap
			$('.linkHome').text('Xin chào ${sessionScope.username}');
			// sua lai dia chi nguoi dung
			$('.linkHome').attr('href', 'account.do');
		});
	</script>
	
</c:if>

<!--don vi tien te-->
<!--
<ul class="currencyBox">
        <li id="header_currancy" class="currency">
                <a class="mainCurrency" href="#">Currency: USD</a>
                <div id="currancyBox" class="currency_detial">
                        <a href="#">£</a><a href="#">€</a><a href="#">$</a>
                </div>
        </li>
</ul> -->
<!--End don vi tien te-->
